namespace Agile20.CS1
{
	public class ShutdownProcessor
	{
		public void DoIt()
		{
			Wait5Seconds();
			TurnOffComputer();					
		}

		private void Wait5Seconds()
		{
			var fiveSeconds= 5000;
                        System.Threading.Thread.Sleep(fiveSeconds);
		}

		private void TurnOffComputer()
		{
			System.Diagnostics.Process.Start("shutdown","/s /t 0");	
		}
	}
}
